package com.gnerv.pabu.plugin.maven;

import com.gnerv.pabu.plugin.ui.CheckTreeManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.popup.JBPopupFactory;
import com.intellij.openapi.ui.popup.ListPopupStep;
import com.intellij.openapi.ui.popup.ListSeparator;
import com.intellij.openapi.ui.popup.MnemonicNavigationFilter;
import com.intellij.openapi.ui.popup.PopupStep;
import com.intellij.openapi.ui.popup.SpeedSearchFilter;
import com.intellij.ui.components.JBTreeTable;
import com.intellij.ui.treeStructure.Tree;
import com.intellij.ui.treeStructure.treetable.ListTreeTableModel;
import com.intellij.ui.treeStructure.treetable.TreeColumnInfo;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.util.List;

@Slf4j
public class AddDependency extends AnAction {

    public AddDependency() {
    }

    public AddDependency(@Nls(capitalization = Nls.Capitalization.Title) @Nullable String text) {
        super(text);
    }

    @Override
    public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
        DefaultMutableTreeNode root = new DefaultMutableTreeNode("0");
        Tree tree = new Tree(root);
        TreeColumnInfo[] treeColumnInfos = new TreeColumnInfo[]{
                new TreeColumnInfo("1")
        };
        ListTreeTableModel listTreeTableModel = new ListTreeTableModel(root, treeColumnInfos);
        JBTreeTable jbTreeTable = new JBTreeTable(listTreeTableModel);
    }

}
